Repository navigation
ci: run workspace tests and lint on PRs (DEV-41) - #1
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
| "scripts": { | ||
| "test": "node --test build/tests/*.test.js", | ||
| "lint": "node --check bin/plugin-builder && find build/core build/adapters -name '*.js' -exec node --check {} \\;" | ||
| "lint": "node --check bin/plugin-builder && find build/core build/adapters -name '*.js' -print0 | xargs -0 -n 1 node --check" |
| "scripts": { | ||
| "test": "node --test build/tests/*.test.js", | ||
| "lint": "node --check bin/plugin-builder && find build/core build/adapters -name '*.js' -exec node --check {} \\;" | ||
| "lint": "node --check bin/plugin-builder && bash -o pipefail -c \"find build/core build/adapters -name '*.js' -print0 | xargs -0 -n 1 node --check\"" |
There was a problem hiding this comment.
📝 Info: 로컬 린트에 Bash 필요
Ubuntu CI와 달리, Bash가 없는 로컬 환경에서는 find와 xargs가 있어도 린트가 소스 검사에 들어가지 못합니다.
Was this helpful? React with 👍 or 👎 to provide feedback.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR과 main push에서 npm ci → npm test → npm run lint를 실행합니다. package-lock.json을 추가하고 Claude 인증·유료 실행은 CI에서 제외했습니다.
CLI가 없는 환경에서도 manifest·이름 오류를 FAIL로 처리하도록 dry-run 검증 순서를 수정했습니다. 누락 manifest 회귀 테스트도 FAIL만 허용합니다. lint는 개별 구문 오류와 파일 탐색 오류 모두 실패로 전달합니다. lint는 기존 Unix 명령에 더해 Bash가 필요하며 Ubuntu CI에서 검증했습니다.
검증: plugin-builder192 + plugin-eval26 = 218 테스트, 정상 lint 통과. 고의 테스트 실패를 실제 PR에 게시해 CI red를 확인한 뒤 제거했습니다. 구문 오류 lint exit123, 탐색 디렉터리 오류 exit1도 로컬 확인했습니다.
저장소 소유자 승인 후 main-ci-required 규칙을 Active로 설정했습니다. main만 대상이고 GitHub Actions의 test를 필수로 하며 우회 목록은 비었습니다. 승인 인원·배포 설정과 다른 규칙은 변경하지 않았습니다. 필수 검사 실패 시 병합 차단 화면을 확인하고 정상 테스트로 복원했습니다. 최종 검사를 통과한 커밋만 병합합니다.
DEV-41의 plugin-tools 부분이며 skelekit PR5와 함께 완료 조건을 검증합니다.